<script setup>
  import { erFormPreview } from 'everright-formeditor'
  import 'Everright-formEditor/dist/style.css'
  const EReditorRef = ref(null)
  const layoutType = ref()
  const handleListener = async ({ type, data }) => {
    switch (type) {
      case 'submit':
        break
    }
  }
</script>
<template>
  <er-form-preview
    @listener="handleListener"
    ref="EReditorRef"
    :layoutType="layoutType"
  />
</template>
